package com.yvon.service.demo.mybatis.mapping;

import java.util.Map;

/**
 * 绑定sql
 *
 * @author yvon
 * @since 2023-04-06
 */
public class BoundSql {

    /**
     * sql
     */
    private String sql;

    /**
     * 参数映射
     */
    private Map<Integer, String> parameterMappings;

    /**
     * 参数类型
     */
    private String parameterType;

    /**
     * 结果类型
     */
    private String resultType;

    public BoundSql(String sql, Map<Integer, String> parameterMappings, String parameterType, String resultType) {
        this.sql = sql;
        this.parameterMappings = parameterMappings;
        this.parameterType = parameterType;
        this.resultType = resultType;
    }

    public String getSql() {
        return sql;
    }

    public Map<Integer, String> getParameterMappings() {
        return parameterMappings;
    }

    public String getParameterType() {
        return parameterType;
    }

    public String getResultType() {
        return resultType;
    }
}
